home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / misc / resparse-1.0-info < prev    next >
Encoding:
Text File  |  1996-10-25  |  1.6 KB  |  47 lines

  1. Newsgroups: comp.protocols.tcp-ip.domains
  2. Path: vixie!decwrl!olivea!spool.mu.edu!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!zaphod.crihan.fr!warwick!uknet!liv!lucs!daves
  3. From: daves@csc.liv.ac.uk (Dave Shield)
  4. Subject: resolver parsing routines
  5. Sender: news@compsci.liverpool.ac.uk (News Eater)
  6. Message-ID: <CL2KxI.MGG@compsci.liverpool.ac.uk>
  7. Nntp-Posting-User: daves
  8. Date: Fri, 11 Feb 1994 17:08:05 GMT
  9. Lines: 34
  10. Nntp-Posting-Host: irwell.csc.liv.ac.uk
  11. Organization: Computer Science, Liverpool University
  12.  
  13. Some time ago, I asked about the availability of routines
  14. to parse the results of a call to res_query/res_search.
  15. (In the general case - not simply gethostent calls).
  16.  
  17.    The general responses were either to use nslookup (or similar)
  18. and awk/perl/etc to parse the output at the shell level, or to use
  19. the BIND debugging code as a framework for unpicking the response.
  20.  
  21.   I didn't much see the point in doing this just for my particular
  22. task, so I've put together a set of routines to parse the resolver
  23. response into a general C structure  (plus copying structures,
  24. printing them and freeing the memory used).
  25.  
  26.   If anyone's interested, they're available from
  27.  
  28.     ftp://ftp.csc.liv.ac.uk/hpux9/Networking/resparse-1.0.tar.gz
  29.  
  30.  
  31.  They've only been tested under HP-UX 9.01  (HP 9k/720).  Please let me
  32. know if they work (or any changes needed) on other configurations.
  33.  
  34.  
  35. On a related point, does anyone know of any records of the following types:
  36.  
  37.     MD, MF            (Obsolete)
  38.     NULL
  39.     TXT            (with MULTIPLE strings)
  40.     AFSDB, X25, ISDN, RP, RT    (RFC 1183)
  41.     UNSPEC
  42.  
  43. The handling of these hasn't been tested, 'cos the HP-UX name server
  44. didn't like them.
  45.  
  46. Dave
  47.